import request from "../request";


//获取微博信息
export const getWeibo = (pageNo,pageSize)=>{
    return request.get('/weibo',{
        params:{
            pageNo,
            pageSize
        }
    })
}

//添加微博
export const addWeibo = (content)=>{
    return request.post('/weibo',{content})
}

//删除微博
export const deleteWeibo = (id)=>{
    return request.delete(`/weibo/${id}`)
}

//修改微博
export const putWeibo = (id,type)=>{
    return request.put(`/weibo/${id}/${type}`)
}